<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta charset="utf-8" />
		<meta content="IE=edge" http-equiv="X-UA-Compatible">
		<link href="__ROOT__/Public/admin/css/admin.css" rel="stylesheet" />
		<link href="__ROOT__/Public/js/tbox/box.css" rel="stylesheet" />
		<script src="__ROOT__/Public/js/jquery.min.js"></script>
		<script src="__ROOT__/Public/js/common.js"></script>
		<script src="__ROOT__/Public/js/tbox/box.js"></script>
		<script src="__ROOT__/Public/js/left.js"></script>
		<script src="__PUBLIC__/js/jquery.zxxbox.v3/js/jquery.zxxbox.3.0.js"></script>
		<script type="text/javascript" src="__PUBLIC__/admin/js/User/usergroup.js"></script>
		<link href="__PUBLIC__/admin/style.css" rel="stylesheet" />
		<script type="text/javascript">
			function deleteAd(ids) {
				var length = 0;
				
				if(ids) {
					length = 1;
				}else {
					ids    = getChecked();
					length = ids[0] == 0 ? ids.length - 1 : ids.length;
			        ids    = ids.toString();
				}
				if(ids=='') {
					alert('{$Think.lang.pleaseSelectAData}');
					return ;
				}
				if(confirm('{$Think.lang.remove}'+length+'{$Think.lang.records}?')) {
					$.post("{:URL('admin/User/delField')}",{ids:ids},function(res){
						if(res=='1') {
							alert('{$Think.lang.delSuccess}');
							removeItem(ids);
						}else {
							alert('{$Think.lang.delFails}');
						}
					});
				}
			}
			
			function move2(ad_id, direction) {
				var baseid  = direction == 'up' ? $('#c_'+ad_id).prev().attr('cid') : $('#c_'+ad_id).next().attr('cid');
				if(baseid) {
					$.post("{:URL('cms/Article/display_order')}", {id:ad_id, baseid:baseid}, function(res){
						if(res == '1') {
							//交换位置
							direction == 'up' ? $('#c_'+ad_id).insertBefore('#c_'+baseid) : $("#c_"+ad_id).insertAfter('#c_'+baseid);
						}
					});
				}
			}
			
			function selectMult() {
				$("select").children().each(function() {
					$(this).attr('selected','selected');
				});
			}
			
			function prompt(msg,other){
				$.zxxbox.remind("<img src='__PUBLIC__/admin/images/loading.gif' />" + msg,function() {},{btnclose:false,title:'操作提示'},other);
			}
		</script>
	</head>
	<body>
		{__CONTENT__}
	</body>
</html>